from api.ihrm_login_api import ihrmLoginApi

def ihrmAssert(status_code,success,code,message,resp):
    assert status_code == resp.status_code
    assert success == resp.json().get('success')
    assert code == resp.json().get('code')
    assert message in resp.json().get('message')


if __name__ == '__main__':
    resp = ihrmLoginApi.login_api("13800000002","123456")
    ihrmAssert(200,True,10000,'成功',resp)